package Day_05;
import java.util.Scanner;
import java.util.Arrays;
public class StandardFourDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("Please Enter the Number(10) and the Scale(100):");
        int num = scan.nextInt() , scale = scan.nextInt();
        int[] a = new int[num];
        for (int i = 0; i < a.length; i++) {
            a[i] = (int)(Math.random()*scale);
            System.out.print(a[i]+"\t");
        }System.out.println("Raw Array");

        Arrays.sort(a);
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"\t");
        }System.out.println("Array_Sort ");

        for (int i = a.length-1; i >= 0; i--) {
            System.out.print(a[i]+"\t");
        }System.out.print("Array_decline");

    }
}
